import App from './App'

import store from './store/index'
// #ifndef VUE3
import Vue from 'vue'
import uView from "uview-ui";
import navtap from "./componets/navtap.vue"
import bottomTabbar from './componets/bottomTabbar.vue'
import topTabbar from './componets/topTabbar.vue'
// import '@/static/mcake/iconfont.css'
// import {$http,$get,$post} from './util/request'
// Vue.prototype.$http = $http
// Vue.prototype.$get = $get
// Vue.prototype.$post = $post

import * as request from './util/request'
for(let i in request)
{
	// console.log(i,request[i])
	Vue.prototype[i] = request[i]
}

Vue.component("topTabbar",topTabbar)
Vue.component("navtap",navtap)
Vue.component("bottomTabbar",bottomTabbar)
Vue.use(uView);
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App,
	store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif